#ifndef QUESTION_H
#define QUESTION_H

#include <QObject>
#include <QtSql>
#include "reponse.h"

class Question : public QObject
{
    Q_OBJECT
public:
    explicit Question(int idCamp, QObject *parent = 0);

    int getId() const;
    void setId(int newId);

    int getNum() const;
    void setNum(int newNum);

    QString getNom() const;
    void setNom(QString newNom);

    QString getTexte() const;
    void setTexte(QString newTexte);

    QString getTypeQ() const;
    void setTypeQ(QString newTypeQ);

    Reponse* getChoixRep() const;
    void setChoixRep(Reponse* newChoixRep);

    QList<Reponse*> getReponses() const;

signals:
    
public slots:

private:
    int id;
    int num;
    QString nom;
    QString texte;
    QString typeQ;
    QList<Reponse*> reponses;
    Reponse* choixRep;
};

#endif // QUESTION_H
